package com.example.todolist.entity

import androidx.room.ColumnInfo
import androidx.room.Ignore

/**
 * 用于列表展示
 */
//class TodoCategory : TodoEntity() {
// 用于查询结果的组合数据类
data class TodoCategory(
    @ColumnInfo(name = "todoId") val todoId: Int,
    @ColumnInfo(name = "title") val title: String,
    @ColumnInfo(name = "endTime") val endTime: String,
    @ColumnInfo(name = "username") val username: String,
    @ColumnInfo(name = "categoryName") val categoryName: String?,
    @ColumnInfo(name = "color") val color: String?,
    @ColumnInfo(name = "importance") val importance: Int,
    @ColumnInfo(name = "is_finish") val isFinish: Boolean = false,
    @ColumnInfo(name = "is_expired") var isExpired: Boolean = false,
    @ColumnInfo(name = "order_num") var orderNum: Int
) {
    @Ignore
    var isSelected: Boolean = false
}